﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Management/Nurse/Nurse.master"
    AutoEventWireup="true" CodeFile="PatientMedication.aspx.cs" Inherits="Management_Nurse_PatientMedication" %>

<%@ Register Src="PatientMedical.ascx" TagName="PatientMedical" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="background-color: #FFFFFF">
        <div style="text-align: center; font-size: 30px; color: Teal; font-weight: bold;
            margin: 20px;">
            ĐƠN THUỐC CHO BỆNH NHÂN
            <br />
        </div>
        <div>
            <table style="width: 118%; height: 500px">
                <tr>
                    <td style="vertical-align: top; width: 30%; padding-left: 10px;" style="width: 30%;">
                        <asp:Label ID="Label1" runat="server" Text="Danh sách bệnh nhân:" Font-Bold="True"
                            Font-Size="20px" ForeColor="#99CC00" Font-Underline="True"></asp:Label>
                        <br />
                        <br />
                        <br />
                        <asp:Label ID="Label2" runat="server" Font-Size="Medium" ForeColor="Black" Text="Chọn Khoa:"></asp:Label>
                        <br />
                        <br />
                        <asp:DropDownList ID="listWard" runat="server" Height="22px" Width="224px" OnSelectedIndexChanged="listWard_SelectedIndexChanged"
                            AutoPostBack="True">
                        </asp:DropDownList>
                        <br />
                        <br />
                        <asp:GridView ID="GridView1" runat="server" Width="300px" AutoGenerateColumns="False"
                            BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
                            CellPadding="4" Font-Size="Medium" ForeColor="Black">
                            <Columns>
                                <asp:TemplateField HeaderText="Mã Bệnh Nhân">
                                    <ItemTemplate>
                                        <asp:Label ID="lbId" runat="server" Text='<%# Eval("ID") %>'>
                                        </asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Tên Bệnh Nhân">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="lbName" runat="server" Text='<%# Eval("Name") %>' OnClick= "loadInfoPatient"
                                            CommandArgument='<%# Eval("ID")+"&"+Eval("LastAppointment") %>'>
                                        </asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="#CCCC99" ForeColor="Black" />
                            <HeaderStyle BackColor="#333333" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="White" ForeColor="Black" HorizontalAlign="Right" />
                            <SelectedRowStyle BackColor="#CC3333" Font-Bold="True" ForeColor="White" />
                            <SortedAscendingCellStyle BackColor="#F7F7F7" />
                            <SortedAscendingHeaderStyle BackColor="#4B4B4B" />
                            <SortedDescendingCellStyle BackColor="#E5E5E5" />
                            <SortedDescendingHeaderStyle BackColor="#242121" />
                        </asp:GridView>
                    </td>
                    <td style="vertical-align: top; width: 259px;" style="width: 70%;">
                        <asp:Panel ID="pnInfo" runat="server">
                            <uc1:PatientMedical ID="PatientMedical1" runat="server" />
                        </asp:Panel>
                    </td>
                </tr>
            </table>
        </div>
        </br> </br> </br>
    </div>
</asp:Content>
